package edu.purdue.cs505;

public class Process
{
  private String IP;
  private int port;
  private String processID;
  private ReliableChannel channel;
  private int index;

  public Process(String IP, int port, int index)
  {
    this.IP = IP;
    this.port = port;
    this.processID = IP + ":" + port;
    this.index = index;
  }

  public final String getIP()
  {
    return IP;
  }

  public final int getPort()
  {
    return port;
  }

  public final String getProcessID()
  {
    return processID;
  }

  public void setChannel(ReliableChannel channel)
  {
    this.channel = channel;
  }

  public ReliableChannel getChannel()
  {
    return this.channel;
  }

  public final int getIndex()
  {
    return index;
  }

  public final void setIndex(int index)
  {
    this.index = index;
  }

}
